//
//  LiveNewSignBaseViewModel.h
//  AFNetworking
//
//  Created by tianlong on 2020/9/27.
//

#import <Foundation/Foundation.h>
#import "LiveBusinessConfig.h"
#import "LiveNewSignEntity.h"
#import "LiveNewSignBaseView.h"
//#import "LiveLogStatisticsHandler+LiveNewSign.h"

NS_ASSUME_NONNULL_BEGIN

@interface LiveNewSignBaseViewModel : NSObject
@property (strong, nonatomic) LiveNewSignEntity *entity;
@property (copy,   nonatomic) NSString *stuName;
@property (copy,   nonatomic) NSString *stuAvatar;
//1 小学皮肤 2 高中皮肤
@property (assign, nonatomic) LiveNewSkinType skinType;
@property (strong, nonatomic) LiveNewSignBaseView *signView;
@property (weak,   nonatomic) UIView *inView;
//动画需要展示在该view之下
@property (nonatomic, strong) UIView *aboveView;
@property (copy,   nonatomic) NSString *interactionId;
@property (copy,   nonatomic) NSString *nonce;
@property (copy,   nonatomic) void (^didClickedClosedBlock)();
@property (copy,   nonatomic) void (^didClickedSignBlock)();
@property (copy,   nonatomic) void (^signViewWillDismissBlock)(UIImageView *view);
- (instancetype)initWithInView:(UIView *)inView;
/** 展示签到面板 */
- (void)showSignViewWithInterId:(NSString *)interId;
/*!
 * @brief 签到成功
 * @param successEntity 签到信息
 * @param myClassStatus 实体班级的显示状态
 */
- (void)showSignSuccess:(LiveNewSignSuccessEntity *)successEntity myClassStatus:(BOOL)myClassStatus;
/** 错过签到 */
- (void)showSignMiss;
/** 未签到 */
- (void)showSignNot;
- (void)removeSignView;
- (NSString *)getNonce;
- (void)appWillResignActive:(NSNotification *)note;
@end

NS_ASSUME_NONNULL_END
